import request from '@/utils/request'

/* 获取员工列表 */
export function getEmployeeListAPI(obj) {
  return request({
    url: '/park/sys/user',
    method:'GET',
    params:obj
  })
}
/* 获取角色列表 */
export function getRoleListAPI(){
  return request({
    url:'/park/sys/role',
    method:'GET'
  })
}

/* 添加 */
export function addEmployeeListAPI(obj){
  return request({
    url:'/park/sys/user',
    method:'POST',
    data:obj
  })
}
/* 删除 */
export function delEmployeeListAPI(id){
  return request({
    url:'/park/sys/user/'+id,
    method:'DELETE'
  })
}
/* 获取用户详情 */
export function getEmployeeListDetailAPI(id){
  return request({
    url:'/park/sys/user/'+id,
    method:'GET'
  })
}
/* 编辑 */
export function editEmployeeListAPI(obj){
  return request({
    url:'/park/sys/user',
    method:'PUT',
    data:obj
  })
}
/* 重置密码 */
export function resetPwdAPI(obj){
  return request({
    url:'/park/sys/user/resetPwd',
    method:'PUT',
    data:obj
  })
}